public class demo3 {
    public static void main(String[] args) {
        new Thread(() -> {
            for(int i = 0; i<= 100; i ++ ){
                System.out.println(i + "听歌");
            }
        }).start();
        new Thread(new Runnable() {
            @Override
            public void run() {
                for(int i = 0; i <= 100; i ++ ){
                    System.out.println(i + "看书");
                }
            }
        }).start();
    }
}
